{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "[['2015年' 137462.0 70414.0 67048.0 77116.0 60346.0]\n",
      " ['2014年' 136782.0 70079.0 66703.0 74916.0 61866.0]\n",
      " ['2013年' 136072.0 69728.0 66344.0 73111.0 62961.0]\n",
      " ['2012年' 135404.0 69395.0 66009.0 71182.0 64222.0]\n",
      " ['2011年' 134735.0 69068.0 65667.0 69079.0 65656.0]\n",
      " ['2010年' 134091.0 68748.0 65343.0 66978.0 67113.0]\n",
      " ['2009年' 133450.0 68647.0 64803.0 64512.0 68938.0]\n",
      " ['2008年' 132802.0 68357.0 64445.0 62403.0 70399.0]\n",
      " ['2007年' 132129.0 68048.0 64081.0 60633.0 71496.0]\n",
      " ['2006年' 131448.0 67728.0 63720.0 58288.0 73160.0]\n",
      " ['2005年' 130756.0 67375.0 63381.0 56212.0 74544.0]\n",
      " ['2004年' 129988.0 66976.0 63012.0 54283.0 75705.0]\n",
      " ['2003年' 129227.0 66556.0 62671.0 52376.0 76851.0]\n",
      " ['2002年' 128453.0 66115.0 62338.0 50212.0 78241.0]\n",
      " ['2001年' 127627.0 65672.0 61955.0 48064.0 79563.0]\n",
      " ['2000年' 126743.0 65437.0 61306.0 45906.0 80837.0]\n",
      " ['1999年' 125786.0 64692.0 61094.0 43748.0 82038.0]\n",
      " ['1998年' 124761.0 63940.0 60821.0 41608.0 83153.0]\n",
      " ['1997年' 123626.0 63131.0 60495.0 39449.0 84177.0]\n",
      " ['1996年' 122389.0 62200.0 60189.0 37304.0 85085.0]\n",
      " [nan nan nan nan nan nan]\n",
      " [nan nan nan nan nan nan]]\n",
      "['时间' '年末总人口(万人)' '男性人口(万人)' '女性人口(万人)' '城镇人口(万人)' '乡村人口(万人)']\n",
      "<class 'numpy.ndarray'>\n",
      "<class 'numpy.ndarray'>\n",
      "(22, 6)\n",
      "(6,)\n"
     ]
    }
   ],
   "source": [
    "import numpy as np\n",
    "import matplotlib.pyplot as plt\n",
    "plt.rcParams['font.sans-serif']='SimHei'\n",
    "plt.rcParams['axes.unicode_minus']=False\n",
    "data=np.load('populations.npz',allow_pickle=True)\n",
    "name=data['data']\n",
    "values=data['feature_names']\n",
    "print(name)\n",
    "print(values)\n",
    "print(type(name))\n",
    "print(type(values))\n",
    "print(np.shape(name))\n",
    "print(np.shape(values))\n",
    "p1=plt.figure(figsize=(8,6),dpi=80)\n",
    "p1.add_subplot(2,2,1)\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.3"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 4
}
